@echo on

rem =============================================================
rem onfail usage:
rem
rem     %1 = top (src directory)
rem     %2 = type (current type from build server)
rem     %3 = title
rem     %4 = buildnumber
rem =============================================================

set SourceRoot=%1
set BuildType=%1
set BuildTitle=%1
set BuildNumber=%1

if not exist c:\builds\%3.%4 md c:\builds\%3.%4 
cd %1
copy *.log c:\build\%3.%4

